package com.atjava.nebula.core.model;

import java.util.List;

/**
 * Basic Tree Model
 * @author jin-dong
 *
 */
public abstract class TreeModel extends BaseModel {

	private static final long serialVersionUID = -7659665521098391499L;

	/**
	 * 树型结构数据获取父节点接口
	 * 
	 * @return 父节点
	 */
	public abstract Object getParentPkid();
	
	/**
	 * 获得树型结构数据唯一标识
	 * @return 唯一标识
	 */
	public abstract Object getPkid();
	
	/**
	 * 子节点
	 */
	private List<TreeModel> childNodes;

	public List<TreeModel> getChildNodes() {
		return childNodes;
	}

	public void setChildNodes(List<TreeModel> childNodes) {
		this.childNodes = childNodes;
	}
	
}
